import request from "@/utils/request";

// 管理员登录
export function login(username, password) {
    const data = {
        username,
        password,
    }
    return request({
        url: "/manage/login",
        method: 'post',
        data: data
    })
}

// 登出
export function logout(userId) {
    return request({
        url: "/logout",
        method: 'post',
        data: userId
    })
}
